<?=isset($header) ? $header : '' ?>
<div id="content">
	<div style="overflow:visible;" class="form_style">
		<div class="title">
			<h5>發簡訊</h5>
		</div>
		<form  method="post" action="<?=site_url('/send_sms/send_submit') ?>" id="userinfo">
			<div>
				<table>
					<tbody >
						<tr>
							<th>客戶：</th>
							<td><?php
							$show_mobile ='';
							foreach ($client as $name => $val) {
								
								if($name=='send_sms' AND $val=="Y"){
									$show_mobile .= $client->mobile.",";
								}
								
								if($name=='send_sms1' AND $val=="Y"){
									$show_mobile .= $client->mobile1.",";
								}
								
								if($name=='send_sms2' AND $val=="Y"){
									$show_mobile .= $client->mobile2.",";
								}
								
							}
							?>
							<input type="text" style="width:80%;" class="post" id="to" name="to" value="<?php echo !empty($show_mobile) ? $show_mobile : ''; ?>" >
							<input type="hidden" id="name" name="name" value="<?=$users ?>">
							</td>
						</tr>
						<tr>
							<th>內容：</th>
							<td >							<textarea id="content" name="content" style="width: 734px; height: 244px;"></textarea></td>
						</tr>
					</tbody>
					<tfoot>
						<tr>
							<td>&nbsp;</td>
							<td>
							<input type="submit" value="發送"  class="input_background">
							</td>
						</tr>
					</tfoot>
				</table>
			</div>
		</form>
	</div>
</div>
<?=isset($footer) ? $footer : '' ?>